﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Universidad.DataAccess.Ado
{
    public class ConexionFactory
    {
        private const string ConnectionStringName = "UniversidadDb";

        public static SqlConnection Crear()
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings[ConnectionStringName].ConnectionString);
        }
    }
}
